#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by master on 2017/2/25

import collections

# 计算每个字母出现的次数 从多到少
c = collections.Counter("hdfsdhfsdjfsjflsfldjfowjofw")

# 取前四个
c.most_common(4)

# for k, v in c.items():
#     print(k, v)

for k in c.elements():
    print(k)
